package com.wicket.okrcomponent.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.github.pagehelper.Page;
import com.github.pagehelper.page.PageMethod;
import com.wicket.okrcomponent.biz.service.SystemTestDomainService;
import com.wicket.okrcomponent.biz.service.dto.req.*;
import com.wicket.okrcomponent.biz.service.dto.res.*;
import com.wicket.okrcomponent.common.ro.OkrResult;
import com.wicket.okrcomponent.common.util.CommonFunctionHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/comp/systemTestDomain/")
public class SystemTestDomainController {

  @Autowired
  SystemTestDomainService systemTestDomainService;
/**
   * D2-3删除空间下方案开通记录测试(公共)
   */
    @PostMapping("deleteSpaceSchemeRecordEtcCom")
    public OkrResult<DeleteSpaceSchemeRecordEtcComRespDto> deleteSpaceSchemeRecordEtcCom(@RequestBody @Validated DeleteSpaceSchemeRecordEtcComReqDto reqDTO){
    return OkrResult.success(systemTestDomainService.deleteSpaceSchemeRecordEtcCom(reqDTO));
    }
/**
   * D2删除配置方案测试(公共)
   */
    @PostMapping("deleteConfSchemeTestCom")
    public OkrResult<DeleteConfSchemeTestComRespDto> deleteConfSchemeTestCom(@RequestBody @Validated DeleteConfSchemeTestComReqDto reqDTO){
    return OkrResult.success(systemTestDomainService.deleteConfSchemeTestCom(reqDTO));
    }
/**
   * D2执行答案测试(公共)
   */
    @PostMapping("implementAnswerTestCom")
    public OkrResult<ImplementAnswerTestComRespDto> implementAnswerTestCom(@RequestBody @Validated ImplementAnswerTestComReqDto reqDTO){
    return OkrResult.success(systemTestDomainService.implementAnswerTestCom(reqDTO));
    }
/**
   * D2分析文档关系归属业务场景(测试公共)
   */
    @PostMapping("analysisUnstructuredDataRelationshipSceneCom")
    public OkrResult<AnalysisUnstructuredDataRelationshipSceneComRespDto> analysisUnstructuredDataRelationshipSceneCom(@RequestBody @Validated AnalysisUnstructuredDataRelationshipSceneComReqDto reqDTO){
    return OkrResult.success(systemTestDomainService.analysisUnstructuredDataRelationshipSceneCom(reqDTO));
    }
}
